package com.example.bilibili_fake.data.network

import com.example.bilibili_fake.data.model.VideoResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query

interface VideoApi {
    //https://api.bilibili.com/x/web-interface/dynamic/region?ps=1&rid=1
    @GET("x/web-interface/dynamic/region?")
    suspend fun getPopularVideos(
        @Query("ps") pageSize: Int,
        @Query("pn") pageNumber: Int,
        @Query("rid") rid: Int = 1
    ): Response<VideoResponse>
}